package org.adorsys.aderp.aderplogin.client;

import org.springframework.security.core.GrantedAuthority;

public class TokenAuthority  implements GrantedAuthority {

	private static final long serialVersionUID = 1246736518142205552L;
	private final String token;

	public TokenAuthority(String token) {
		this.token = token;
	}

	@Override
	public String getAuthority() {
		return "Access token";
	}

	@Override
	public String toString() {
		return "TokenAuthority [Access token]";
	}

	public String getToken() {
		return token;
	}
	
	
}
